package nl.mpc_soft.Addledo;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class AddledoActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        RestClient client = new RestClient("http://api.toodledo.com/2/account/token.php");
        client.AddParam("appid", "Addledo");
        try {
            client.Execute(RequestMethod.GET);
        } catch (Exception e) {
            e.printStackTrace();
        }
         
       TextView t;
       t = (TextView) findViewById(R.id.output);
       t.setText (client.getResponse());
    }
}